]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
network: Remove overflow of VPN configurations
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 10 Jun 2013 19:53:56 +0000 (15:53 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 14 Jun 2013 18:15:16 +0000 (14:15 -0400)
It's unlikely that somebody has more than five VPN connections
configured, and the code is

https://bugzilla.gnome.org/show_bug.cgi?id=701954

js/ui/status/network.js

index 594e14d59c09d3f22e6d5717bde9a90f0051124f..640cfe20701bd5adae05330fc169939ccafcf7c0 100644 (file)
@@ -1423,15 +1423,7 @@ const NMVPNSection = new Lang.Class({
             for(let j = 0; j < this._connections.length; ++j) {
                 let obj = this._connections[j];
                 obj.item = this._createConnectionItem(obj);
-
-                if (j >= NUM_VISIBLE_NETWORKS) {
-                    if (!this._overflowItem) {
-                        this._overflowItem = new PopupMenu.PopupSubMenuMenuItem(_("More…"));
-                        this.section.addMenuItem(this._overflowItem);
-                    }
-                    this._overflowItem.menu.addMenuItem(obj.item);
-                } else
-                    this.section.addMenuItem(obj.item);
+                this.section.addMenuItem(obj.item);
             }
         } else {
             this.section.actor.hide()